package com.yc.c118s3plyspringboot;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@ConfigurationProperties(prefix = "myinfo")
@Data
public class MyinfoProperties {
    private String name;
    private int age;
    private List<String> likes;
    private List<String> foods;
}
